﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBLL;
using IDAL;

namespace BLL
{
    public partial class BLLSession 
    {
	   public int SaveChanges(string type)
        {
            IDBSessionFactory sessFactory = DI.Spring.GetObject<IDBSessionFactory>("DBSessFactory");
            var iDbSession = sessFactory.GetDBSession();
            return iDbSession.SaveChanges(type);
        }       


        		
		IObject_BLL iObject_BLL;
		public IObject_BLL IObject_BLL
		{
			get
			{
				if(iObject_BLL==null)
					iObject_BLL= new Object_BLL();
				return iObject_BLL;
			}
			set
			{
				iObject_BLL= value;
			}
		}
	
    }
	public partial class BLLSession : IBLLSession
    {
        		#region 01 业务接口 IDeliveryPeriodType_DAL
		IDeliveryPeriodType_BLL iDeliveryPeriodType_BLL;
		public IDeliveryPeriodType_BLL IDeliveryPeriodType_BLL
		{
			get
			{
				if(iDeliveryPeriodType_BLL==null)
					iDeliveryPeriodType_BLL= new DeliveryPeriodType_BLL();
				return iDeliveryPeriodType_BLL;
			}
			set
			{
				iDeliveryPeriodType_BLL= value;
			}
		}
		#endregion

        		#region 02 业务接口 IDistributeArea_DAL
		IDistributeArea_BLL iDistributeArea_BLL;
		public IDistributeArea_BLL IDistributeArea_BLL
		{
			get
			{
				if(iDistributeArea_BLL==null)
					iDistributeArea_BLL= new DistributeArea_BLL();
				return iDistributeArea_BLL;
			}
			set
			{
				iDistributeArea_BLL= value;
			}
		}
		#endregion

        		#region 03 业务接口 IDistributeAreaStock_DAL
		IDistributeAreaStock_BLL iDistributeAreaStock_BLL;
		public IDistributeAreaStock_BLL IDistributeAreaStock_BLL
		{
			get
			{
				if(iDistributeAreaStock_BLL==null)
					iDistributeAreaStock_BLL= new DistributeAreaStock_BLL();
				return iDistributeAreaStock_BLL;
			}
			set
			{
				iDistributeAreaStock_BLL= value;
			}
		}
		#endregion

        		#region 04 业务接口 IMaterial_DAL
		IMaterial_BLL iMaterial_BLL;
		public IMaterial_BLL IMaterial_BLL
		{
			get
			{
				if(iMaterial_BLL==null)
					iMaterial_BLL= new Material_BLL();
				return iMaterial_BLL;
			}
			set
			{
				iMaterial_BLL= value;
			}
		}
		#endregion

        		#region 05 业务接口 IMaterialCategory_DAL
		IMaterialCategory_BLL iMaterialCategory_BLL;
		public IMaterialCategory_BLL IMaterialCategory_BLL
		{
			get
			{
				if(iMaterialCategory_BLL==null)
					iMaterialCategory_BLL= new MaterialCategory_BLL();
				return iMaterialCategory_BLL;
			}
			set
			{
				iMaterialCategory_BLL= value;
			}
		}
		#endregion

        		#region 06 业务接口 IMaterialProperty_DAL
		IMaterialProperty_BLL iMaterialProperty_BLL;
		public IMaterialProperty_BLL IMaterialProperty_BLL
		{
			get
			{
				if(iMaterialProperty_BLL==null)
					iMaterialProperty_BLL= new MaterialProperty_BLL();
				return iMaterialProperty_BLL;
			}
			set
			{
				iMaterialProperty_BLL= value;
			}
		}
		#endregion

        		#region 07 业务接口 IMaterialSupplier_DAL
		IMaterialSupplier_BLL iMaterialSupplier_BLL;
		public IMaterialSupplier_BLL IMaterialSupplier_BLL
		{
			get
			{
				if(iMaterialSupplier_BLL==null)
					iMaterialSupplier_BLL= new MaterialSupplier_BLL();
				return iMaterialSupplier_BLL;
			}
			set
			{
				iMaterialSupplier_BLL= value;
			}
		}
		#endregion

        		#region 08 业务接口 IMaterialType_DAL
		IMaterialType_BLL iMaterialType_BLL;
		public IMaterialType_BLL IMaterialType_BLL
		{
			get
			{
				if(iMaterialType_BLL==null)
					iMaterialType_BLL= new MaterialType_BLL();
				return iMaterialType_BLL;
			}
			set
			{
				iMaterialType_BLL= value;
			}
		}
		#endregion

        		#region 09 业务接口 IPaymentType_DAL
		IPaymentType_BLL iPaymentType_BLL;
		public IPaymentType_BLL IPaymentType_BLL
		{
			get
			{
				if(iPaymentType_BLL==null)
					iPaymentType_BLL= new PaymentType_BLL();
				return iPaymentType_BLL;
			}
			set
			{
				iPaymentType_BLL= value;
			}
		}
		#endregion

        		#region 10 业务接口 IProduct_DAL
		IProduct_BLL iProduct_BLL;
		public IProduct_BLL IProduct_BLL
		{
			get
			{
				if(iProduct_BLL==null)
					iProduct_BLL= new Product_BLL();
				return iProduct_BLL;
			}
			set
			{
				iProduct_BLL= value;
			}
		}
		#endregion

        		#region 11 业务接口 IProductCategory_DAL
		IProductCategory_BLL iProductCategory_BLL;
		public IProductCategory_BLL IProductCategory_BLL
		{
			get
			{
				if(iProductCategory_BLL==null)
					iProductCategory_BLL= new ProductCategory_BLL();
				return iProductCategory_BLL;
			}
			set
			{
				iProductCategory_BLL= value;
			}
		}
		#endregion

        		#region 12 业务接口 IProductConfig_DAL
		IProductConfig_BLL iProductConfig_BLL;
		public IProductConfig_BLL IProductConfig_BLL
		{
			get
			{
				if(iProductConfig_BLL==null)
					iProductConfig_BLL= new ProductConfig_BLL();
				return iProductConfig_BLL;
			}
			set
			{
				iProductConfig_BLL= value;
			}
		}
		#endregion

        		#region 13 业务接口 IProductCost_DAL
		IProductCost_BLL iProductCost_BLL;
		public IProductCost_BLL IProductCost_BLL
		{
			get
			{
				if(iProductCost_BLL==null)
					iProductCost_BLL= new ProductCost_BLL();
				return iProductCost_BLL;
			}
			set
			{
				iProductCost_BLL= value;
			}
		}
		#endregion

        		#region 14 业务接口 IProductInfo_DAL
		IProductInfo_BLL iProductInfo_BLL;
		public IProductInfo_BLL IProductInfo_BLL
		{
			get
			{
				if(iProductInfo_BLL==null)
					iProductInfo_BLL= new ProductInfo_BLL();
				return iProductInfo_BLL;
			}
			set
			{
				iProductInfo_BLL= value;
			}
		}
		#endregion

        		#region 15 业务接口 IProductMaterial_DAL
		IProductMaterial_BLL iProductMaterial_BLL;
		public IProductMaterial_BLL IProductMaterial_BLL
		{
			get
			{
				if(iProductMaterial_BLL==null)
					iProductMaterial_BLL= new ProductMaterial_BLL();
				return iProductMaterial_BLL;
			}
			set
			{
				iProductMaterial_BLL= value;
			}
		}
		#endregion

        		#region 16 业务接口 IProductPackageInfo_DAL
		IProductPackageInfo_BLL iProductPackageInfo_BLL;
		public IProductPackageInfo_BLL IProductPackageInfo_BLL
		{
			get
			{
				if(iProductPackageInfo_BLL==null)
					iProductPackageInfo_BLL= new ProductPackageInfo_BLL();
				return iProductPackageInfo_BLL;
			}
			set
			{
				iProductPackageInfo_BLL= value;
			}
		}
		#endregion

        		#region 17 业务接口 IProductProperty_DAL
		IProductProperty_BLL iProductProperty_BLL;
		public IProductProperty_BLL IProductProperty_BLL
		{
			get
			{
				if(iProductProperty_BLL==null)
					iProductProperty_BLL= new ProductProperty_BLL();
				return iProductProperty_BLL;
			}
			set
			{
				iProductProperty_BLL= value;
			}
		}
		#endregion

        		#region 18 业务接口 IProductSpec_DAL
		IProductSpec_BLL iProductSpec_BLL;
		public IProductSpec_BLL IProductSpec_BLL
		{
			get
			{
				if(iProductSpec_BLL==null)
					iProductSpec_BLL= new ProductSpec_BLL();
				return iProductSpec_BLL;
			}
			set
			{
				iProductSpec_BLL= value;
			}
		}
		#endregion

        		#region 19 业务接口 IProductStatu_DAL
		IProductStatu_BLL iProductStatu_BLL;
		public IProductStatu_BLL IProductStatu_BLL
		{
			get
			{
				if(iProductStatu_BLL==null)
					iProductStatu_BLL= new ProductStatu_BLL();
				return iProductStatu_BLL;
			}
			set
			{
				iProductStatu_BLL= value;
			}
		}
		#endregion

        		#region 20 业务接口 IPurchaseMode_DAL
		IPurchaseMode_BLL iPurchaseMode_BLL;
		public IPurchaseMode_BLL IPurchaseMode_BLL
		{
			get
			{
				if(iPurchaseMode_BLL==null)
					iPurchaseMode_BLL= new PurchaseMode_BLL();
				return iPurchaseMode_BLL;
			}
			set
			{
				iPurchaseMode_BLL= value;
			}
		}
		#endregion

        		#region 21 业务接口 IPurchaseModeSection_DAL
		IPurchaseModeSection_BLL iPurchaseModeSection_BLL;
		public IPurchaseModeSection_BLL IPurchaseModeSection_BLL
		{
			get
			{
				if(iPurchaseModeSection_BLL==null)
					iPurchaseModeSection_BLL= new PurchaseModeSection_BLL();
				return iPurchaseModeSection_BLL;
			}
			set
			{
				iPurchaseModeSection_BLL= value;
			}
		}
		#endregion

        		#region 22 业务接口 IPurchaseType_DAL
		IPurchaseType_BLL iPurchaseType_BLL;
		public IPurchaseType_BLL IPurchaseType_BLL
		{
			get
			{
				if(iPurchaseType_BLL==null)
					iPurchaseType_BLL= new PurchaseType_BLL();
				return iPurchaseType_BLL;
			}
			set
			{
				iPurchaseType_BLL= value;
			}
		}
		#endregion

        		#region 23 业务接口 IStock_DAL
		IStock_BLL iStock_BLL;
		public IStock_BLL IStock_BLL
		{
			get
			{
				if(iStock_BLL==null)
					iStock_BLL= new Stock_BLL();
				return iStock_BLL;
			}
			set
			{
				iStock_BLL= value;
			}
		}
		#endregion

        		#region 24 业务接口 ISupplier_DAL
		ISupplier_BLL iSupplier_BLL;
		public ISupplier_BLL ISupplier_BLL
		{
			get
			{
				if(iSupplier_BLL==null)
					iSupplier_BLL= new Supplier_BLL();
				return iSupplier_BLL;
			}
			set
			{
				iSupplier_BLL= value;
			}
		}
		#endregion

        		#region 25 业务接口 ISupplierBankCard_DAL
		ISupplierBankCard_BLL iSupplierBankCard_BLL;
		public ISupplierBankCard_BLL ISupplierBankCard_BLL
		{
			get
			{
				if(iSupplierBankCard_BLL==null)
					iSupplierBankCard_BLL= new SupplierBankCard_BLL();
				return iSupplierBankCard_BLL;
			}
			set
			{
				iSupplierBankCard_BLL= value;
			}
		}
		#endregion

        		#region 26 业务接口 ISupplierModeType_DAL
		ISupplierModeType_BLL iSupplierModeType_BLL;
		public ISupplierModeType_BLL ISupplierModeType_BLL
		{
			get
			{
				if(iSupplierModeType_BLL==null)
					iSupplierModeType_BLL= new SupplierModeType_BLL();
				return iSupplierModeType_BLL;
			}
			set
			{
				iSupplierModeType_BLL= value;
			}
		}
		#endregion

        		#region 27 业务接口 IView_Category_DAL
		IView_Category_BLL iView_Category_BLL;
		public IView_Category_BLL IView_Category_BLL
		{
			get
			{
				if(iView_Category_BLL==null)
					iView_Category_BLL= new View_Category_BLL();
				return iView_Category_BLL;
			}
			set
			{
				iView_Category_BLL= value;
			}
		}
		#endregion

        		#region 28 业务接口 IView_CategorySpecifics_DAL
		IView_CategorySpecifics_BLL iView_CategorySpecifics_BLL;
		public IView_CategorySpecifics_BLL IView_CategorySpecifics_BLL
		{
			get
			{
				if(iView_CategorySpecifics_BLL==null)
					iView_CategorySpecifics_BLL= new View_CategorySpecifics_BLL();
				return iView_CategorySpecifics_BLL;
			}
			set
			{
				iView_CategorySpecifics_BLL= value;
			}
		}
		#endregion

        		#region 29 业务接口 IView_Contraband_DAL
		IView_Contraband_BLL iView_Contraband_BLL;
		public IView_Contraband_BLL IView_Contraband_BLL
		{
			get
			{
				if(iView_Contraband_BLL==null)
					iView_Contraband_BLL= new View_Contraband_BLL();
				return iView_Contraband_BLL;
			}
			set
			{
				iView_Contraband_BLL= value;
			}
		}
		#endregion

        		#region 30 业务接口 IView_Currency_DAL
		IView_Currency_BLL iView_Currency_BLL;
		public IView_Currency_BLL IView_Currency_BLL
		{
			get
			{
				if(iView_Currency_BLL==null)
					iView_Currency_BLL= new View_Currency_BLL();
				return iView_Currency_BLL;
			}
			set
			{
				iView_Currency_BLL= value;
			}
		}
		#endregion

        		#region 31 业务接口 IView_Measure_DAL
		IView_Measure_BLL iView_Measure_BLL;
		public IView_Measure_BLL IView_Measure_BLL
		{
			get
			{
				if(iView_Measure_BLL==null)
					iView_Measure_BLL= new View_Measure_BLL();
				return iView_Measure_BLL;
			}
			set
			{
				iView_Measure_BLL= value;
			}
		}
		#endregion

        		#region 32 业务接口 IView_ProductSpec_DAL
		IView_ProductSpec_BLL iView_ProductSpec_BLL;
		public IView_ProductSpec_BLL IView_ProductSpec_BLL
		{
			get
			{
				if(iView_ProductSpec_BLL==null)
					iView_ProductSpec_BLL= new View_ProductSpec_BLL();
				return iView_ProductSpec_BLL;
			}
			set
			{
				iView_ProductSpec_BLL= value;
			}
		}
		#endregion

        		#region 33 业务接口 IView_ProductStatus_DAL
		IView_ProductStatus_BLL iView_ProductStatus_BLL;
		public IView_ProductStatus_BLL IView_ProductStatus_BLL
		{
			get
			{
				if(iView_ProductStatus_BLL==null)
					iView_ProductStatus_BLL= new View_ProductStatus_BLL();
				return iView_ProductStatus_BLL;
			}
			set
			{
				iView_ProductStatus_BLL= value;
			}
		}
		#endregion

        		#region 34 业务接口 IView_Specifics_DAL
		IView_Specifics_BLL iView_Specifics_BLL;
		public IView_Specifics_BLL IView_Specifics_BLL
		{
			get
			{
				if(iView_Specifics_BLL==null)
					iView_Specifics_BLL= new View_Specifics_BLL();
				return iView_Specifics_BLL;
			}
			set
			{
				iView_Specifics_BLL= value;
			}
		}
		#endregion

        		#region 35 业务接口 IView_SpecificsValue_DAL
		IView_SpecificsValue_BLL iView_SpecificsValue_BLL;
		public IView_SpecificsValue_BLL IView_SpecificsValue_BLL
		{
			get
			{
				if(iView_SpecificsValue_BLL==null)
					iView_SpecificsValue_BLL= new View_SpecificsValue_BLL();
				return iView_SpecificsValue_BLL;
			}
			set
			{
				iView_SpecificsValue_BLL= value;
			}
		}
		#endregion

        		#region 36 业务接口 IView_Value_DAL
		IView_Value_BLL iView_Value_BLL;
		public IView_Value_BLL IView_Value_BLL
		{
			get
			{
				if(iView_Value_BLL==null)
					iView_Value_BLL= new View_Value_BLL();
				return iView_Value_BLL;
			}
			set
			{
				iView_Value_BLL= value;
			}
		}
		#endregion

            }
}